<template>
  <div class='container'>
    <el-dialog
      :visible="dialogVisible"
      title="题目审核"
      width="21%"
      @close="$emit('onClose')">
      <el-form ref="form" :model="auditForm">
        <el-form-item>
          <el-radio-group v-model="auditForm.chkState">
            <el-radio :label="1">通过</el-radio>
            <el-radio :label="2">拒绝</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item>
          <el-input
            v-model.trim="auditForm.chkRemarks"
            placeholder="请输入审核意见"
            type="textarea">
          </el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
    <el-button @click="$emit('onClose')">取 消</el-button>
    <el-button type="primary" @click="$emit('onSave')">确 定</el-button>
  </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    auditForm: {
      type: Object,
      required: true
    },
    dialogVisible: {
      type: Boolean,
      required: true
    }
  },
  methods: {}
}
</script>

<style lang='less' scoped></style>
